.class public final Llt/noframe/ratemeplease/TwitterDialogFragment;
.super Llt/noframe/ratemeplease/abs/AbsDialogFragment;
.source "TwitterDialogFragment.kt"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "ValidFragment"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/ratemeplease/TwitterDialogFragment$REACTION;
    }
.end annotation


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;

.field private final hashTag:Ljava/lang/String;

.field private final pageId:Ljava/lang/String;

.field private final tweetText:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "pageId"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "hashTag"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "tweetText"

    invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 20
    invoke-direct {p0}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;-><init>()V

    iput-object p1, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->pageId:Ljava/lang/String;

    iput-object p2, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->hashTag:Ljava/lang/String;

    iput-object p3, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->tweetText:Ljava/lang/String;

    const/4 p1, 0x1

    .line 30
    invoke-virtual {p0, p1}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->setDismissible(Z)V

    return-void
.end method


# virtual methods
.method public _$_clearFindViewByIdCache()V
    .locals 1

    iget-object v0, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->_$_findViewCache:Ljava/util/HashMap;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_0
    return-void
.end method

.method public final getPageId()Ljava/lang/String;
    .locals 1

    .line 20
    iget-object v0, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->pageId:Ljava/lang/String;

    return-object v0
.end method

.method public final getTweetText()Ljava/lang/String;
    .locals 1

    .line 20
    iget-object v0, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->tweetText:Ljava/lang/String;

    return-object v0
.end method

.method public onCancel(Landroid/content/DialogInterface;)V
    .locals 3

    .line 66
    invoke-super {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCancel(Landroid/content/DialogInterface;)V

    .line 67
    sget-object p1, Llt/noframe/ratemeplease/RateMePlsKotlin;->S:Llt/noframe/ratemeplease/RateMePlsKotlin$S;

    invoke-virtual {p1}, Llt/noframe/ratemeplease/RateMePlsKotlin$S;->getParentInterface()Llt/noframe/ratemeplease/java_interfaces/OnReactionInterface;

    move-result-object p1

    if-eqz p1, :cond_1

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    const-string v2, "activity!!"

    invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v2, Llt/noframe/ratemeplease/TwitterDialogFragment$REACTION;->DISMISS:Llt/noframe/ratemeplease/TwitterDialogFragment$REACTION;

    invoke-interface {p1, v0, v2, v1}, Llt/noframe/ratemeplease/java_interfaces/OnReactionInterface;->onTwitterReaction(Landroid/app/Activity;Llt/noframe/ratemeplease/TwitterDialogFragment$REACTION;Landroid/os/Bundle;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v1

    :cond_1
    :goto_0
    return-void
.end method

.method public synthetic onDestroyView()V
    .locals 0

    invoke-super {p0}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->onDestroyView()V

    invoke-virtual {p0}, Llt/noframe/ratemeplease/TwitterDialogFragment;->_$_clearFindViewByIdCache()V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 4

    const-string v0, "view"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 34
    invoke-super {p0, p1, p2}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 36
    new-instance p1, Llt/noframe/ratemeplease/social/TwitterProcessor;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    const/4 v0, 0x0

    if-eqz p2, :cond_1

    const-string v1, "activity!!"

    invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p1, p2}, Llt/noframe/ratemeplease/social/TwitterProcessor;-><init>(Landroid/app/Activity;)V

    .line 38
    new-instance p2, Llt/noframe/ratemeplease/views/TwitterView;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p2, v2}, Llt/noframe/ratemeplease/views/TwitterView;-><init>(Landroid/app/Activity;)V

    .line 40
    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {p2, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 42
    invoke-virtual {p0, p2}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->setCurrentContent(Landroid/view/View;)V

    .line 44
    sget v0, Llt/noframe/ratemeplease/R$id;->pageTitle:I

    invoke-virtual {p2, v0}, Llt/noframe/ratemeplease/views/TwitterView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string v1, "view.pageTitle"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v2, 0x40

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    iget-object v2, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->pageId:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 46
    sget v0, Llt/noframe/ratemeplease/R$id;->tweetTx:I

    invoke-virtual {p2, v0}, Llt/noframe/ratemeplease/views/TwitterView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string v1, "view.tweetTx"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2}, Llt/noframe/ratemeplease/abs/AbsContentView;->getStrings()Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;

    move-result-object v2

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-interface {v2, v3}, Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;->getTweet(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v2, 0x20

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    iget-object v2, p0, Llt/noframe/ratemeplease/TwitterDialogFragment;->hashTag:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 48
    sget v0, Llt/noframe/ratemeplease/R$id;->tweetButton:I

    invoke-virtual {p2, v0}, Llt/noframe/ratemeplease/views/TwitterView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    new-instance v1, Llt/noframe/ratemeplease/TwitterDialogFragment$onViewCreated$1;

    invoke-direct {v1, p0, p1}, Llt/noframe/ratemeplease/TwitterDialogFragment$onViewCreated$1;-><init>(Llt/noframe/ratemeplease/TwitterDialogFragment;Llt/noframe/ratemeplease/social/TwitterProcessor;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 54
    sget v0, Llt/noframe/ratemeplease/R$id;->followButton:I

    invoke-virtual {p2, v0}, Llt/noframe/ratemeplease/views/TwitterView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    new-instance v1, Llt/noframe/ratemeplease/TwitterDialogFragment$onViewCreated$2;

    invoke-direct {v1, p0, p1}, Llt/noframe/ratemeplease/TwitterDialogFragment$onViewCreated$2;-><init>(Llt/noframe/ratemeplease/TwitterDialogFragment;Llt/noframe/ratemeplease/social/TwitterProcessor;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 59
    sget p1, Llt/noframe/ratemeplease/R$id;->skipButton:I

    invoke-virtual {p2, p1}, Llt/noframe/ratemeplease/views/TwitterView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    new-instance p2, Llt/noframe/ratemeplease/TwitterDialogFragment$onViewCreated$3;

    invoke-direct {p2, p0}, Llt/noframe/ratemeplease/TwitterDialogFragment$onViewCreated$3;-><init>(Llt/noframe/ratemeplease/TwitterDialogFragment;)V

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void

    .line 38
    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0

    .line 36
    :cond_1
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0
.end method
